%%%-------------------------------------------------------------------
%%% @author Rain
%%% @doc 数据库相关
%%% @end
%%%-------------------------------------------------------------------
-author("Rain").

-ifndef(DB_HRL).
-define(DB_HRL, true).
-include_lib("mysql/include/protocol.hrl").
-include_lib("game_log/include/log.hrl").
-include_lib("game_util/include/game_util.hrl").

-define(all, all).

-define(MYSQL_QUERY_TIMEOUT, 5000). % Query超时时间
-ifndef(IF).
-define(IF(C, T, F), (case (C) of true -> (T); false -> (F) end)).
-endif.

-export_type([db_type/0]).
-type db_type() :: game | log | login.




-endif.